package com.mandala.entry;

import java.util.List;

import javax.naming.Name;

import org.springframework.ldap.odm.annotations.Attribute;
import org.springframework.ldap.odm.annotations.Entry;
import org.springframework.ldap.odm.annotations.Id;

import com.fasterxml.jackson.annotation.JsonIgnore;

@Entry(objectClasses = {"groupOfURLs","top"},base = "ou=role")
public class Role {
	 @Id
	 @JsonIgnore
	 private Name dn;
	 
	 @Attribute(name="code")
	 private String code;
	 
	 @Attribute(name="resourceName")
	 private String resourceName;
	 
	 @Attribute(name="order")
	 private String order;
	 
	 @Attribute(name="subRole")
	 private List<String> subRole;
	 
	 @Attribute(name="status")
	 private String status;
	 
	 @Attribute(name="user")
	 private List<String> user;
	 
	 @Attribute(name="systemId")
	 private String systemId;
	 
	 @Attribute(name="isDelete")
	 private String isDelete;
	 
	 @Attribute(name="type")
	 private String type;
	 
	 @Attribute(name="scope")
	 private String scope;
	 
	 @Attribute(name="memberURL")
	 private String memberURL;
	 
	 @Attribute(name="cn")
	 private String cn;
	 
	 @Attribute(name="description")
	 private String description;
	 
	 @Attribute(name="ogr")
	 private List<String> org;
	 
	 @Attribute(name="group")
	 private List<String> group;
	 
	 @Attribute(name="permission")
	 private List<String> permission;

	public Name getDn() {
		return dn;
	}

	public void setDn(Name dn) {
		this.dn = dn;
	}

	

	public List<String> getSubRole() {
		return subRole;
	}

	public void setSubRole(List<String> subRole) {
		this.subRole = subRole;
	}

	public String getMemberURL() {
		return memberURL;
	}

	public void setMemberURL(String memberURL) {
		this.memberURL = memberURL;
	}

	public List<String> getPermission() {
		return permission;
	}

	public void setPermission(List<String> permission) {
		this.permission = permission;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getResourceName() {
		return resourceName;
	}

	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	
	

	public List<String> getOrg() {
		return org;
	}

	public void setOrg(List<String> org) {
		this.org = org;
	}

	public List<String> getGroup() {
		return group;
	}

	public void setGroup(List<String> group) {
		this.group = group;
	}

	public List<String> getUser() {
		return user;
	}

	public void setUser(List<String> user) {
		this.user = user;
	}

	public String getSystemId() {
		return systemId;
	}

	public void setSystemId(String systemId) {
		this.systemId = systemId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getScope() {
		return scope;
	}

	public void setScope(String scope) {
		this.scope = scope;
	}

	public String getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}

	public String getCn() {
		return cn;
	}

	public void setCn(String cn) {
		this.cn = cn;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	 
	 
	 
	
}
